home *** CD-ROM | disk | FTP | other *** search
/ Developer Helper 1: Phil & Dave's Excellent CD / Excellent CD HFS.raw / HyperCard / HyperCard 1.2.2 International / HyperCard British (B-1.2.2) / Stacks / Home / card_5640.txt < prev    next >
Text File  |  1988-11-08  |  2KB  |  43 lines

  1. -- card: 5640 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 2549
  5. -- name: Documents
  6. ----- HyperTalk script -----
  7. on mouseUp
  8.   pop card into it
  9.   if it contains "Documents" then go to it
  10. end mouseUp
  11.  
  12.  
  13.  
  14. -- part contents for background part 7
  15. ----- text -----
  16. :Documents:
  17.  
  18.  
  19. -- part contents for background part 17
  20. ----- text -----
  21. Look for Documents in:
  22.  
  23. -- part contents for background part 19
  24. ----- text -----
  25. When you launch another application from HyperCard you can specify which data file (document) to use.  HyperCard will look for a document in the folders indicated on this card.  
  26.  
  27. Each line of this card describes a "path".  A "path" describes the location of a folder.  A folder containing an document may itself be contained within another folder on a disk.  Paths help HyperCard find applications and their documents quickly.  For example, when you type "open myResume with MacWrite" in the message box, HyperCard searches for the the document "Resume" in the folders indicated by the paths in this card and searches for MacWrite according to the paths in the applications path card.   You can also program a button to launch an application.  See the Help stack for more information.
  28.  
  29. ‚Ä¢ Examples:
  30. :Documents:
  31.      Tells HyperCard to look for documents in the "Documents" folder on the disk. The colon right before the "D" of "Documents" tells HyperCard to look for the folder "Documents" in the same place as the HyperCard application on the disk. 
  32.  
  33. Back up:  
  34.      Tells HyperCard that there are documents in a disk called 
  35. "Back up" (e.g. a floppy). Notice that there is no colon preceding the disk name.  
  36.  
  37. Tom:Docs:Memos:  
  38.     Tells HyperCard that there are documents in a folder called 
  39. "Memos", and that this folder is in another one called  "Docs" which sits on a disk called Tom (e.g. name of your hard disk).
  40.  
  41.  
  42. If the document is not found, a dialog box appears, asking you where it is. You can locate the document with this dialog box. The path card is automatically updated so that the next time HyperCard will know where to find the document. 
  43.